package work.jame.blog.framework.exception.user;

import work.jame.blog.framework.exception.ProjectException;

/**
 * 用户认证异常
 *
 * @author Jame!
 * @date 2023/5/10 下午 8:14
 */
public class UserAuthenticationException extends ProjectException {

    /**
     * 失败次数
     */
    private int failNumber = 0;

    /**
     * 错误提示信息
     */
    private final String message;

    public UserAuthenticationException(String message) {
        this.message = message;
    }

    public UserAuthenticationException(String message, int failNumber) {
        this.failNumber = failNumber;
        this.message = message;
    }

    public int getFailNumber() {
        return failNumber;
    }

    @Override
    public String getMessage() {
        return message;
    }


}
